/// coinCount : 7546
/// level : 76
/// nickname : ""
/// rank : "168"
/// userId : 26308
/// username : "l**_2019"

class UserInfoBean {
  int _coinCount;
  int _level;
  String _nickname;
  String _rank;
  int _userId;
  String _username;

  int get coinCount => _coinCount;
  int get level => _level;
  String get nickname => _nickname;
  String get rank => _rank;
  int get userId => _userId;
  String get username => _username;

  UserInfoBean({
      int coinCount, 
      int level, 
      String nickname, 
      String rank, 
      int userId, 
      String username}){
    _coinCount = coinCount;
    _level = level;
    _nickname = nickname;
    _rank = rank;
    _userId = userId;
    _username = username;
}

  UserInfoBean.fromJson(dynamic json) {
    _coinCount = json["coinCount"];
    _level = json["level"];
    _nickname = json["nickname"];
    _rank = json["rank"];
    _userId = json["userId"];
    _username = json["username"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["coinCount"] = _coinCount;
    map["level"] = _level;
    map["nickname"] = _nickname;
    map["rank"] = _rank;
    map["userId"] = _userId;
    map["username"] = _username;
    return map;
  }

}